/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jobscheduling.model;

import java.io.Serializable;
import java.util.Iterator;
import java.util.List;

/**
 *
 * @author Vojtek
 */
public class SolutionDTO implements Serializable{
    protected Problem _problem;
    protected List<Solution> _solutions;
    
    public SolutionDTO(Problem problem, List<Solution> solutions){
        _problem = problem;
        _solutions = solutions;
        Iterator<Solution> it = _solutions.iterator();
        while(it.hasNext())
            it.next().clearComputation();
    }
    
    public Problem getProblem(){
        return _problem;
    }
    
    public List<Solution> getSolutions(){
        return _solutions;
    }
}
